﻿<%--
  Created by IntelliJ IDEA.
  User: ChadZhao
  Date: 11-1-6
  Time: 下午2:41
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
<title>南京地税廉政网</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
body,td,th {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #666;
}
body {
	margin-top: 10px;
}
.input { color: #666; width:199px; height:31px; font-family:Arial; border:0px solid #749714; background:transparent url(images/inputbg.png); line-height:31px; padding-left:10px;}
.input:hover { color: #666;	width:199px; height:31px; font-family:Arial; border:0px solid #749714; background:url(images/inputbg2.png); }
.submit1 { background:url(images/btnbg.png); width:93px; height:36px; border:0px; cursor:hand; color:#333333; font-size:15px; font-family:"微软雅黑";}
.submit1:hover {background:url(images/btnbg2.png); width:93px; height:36px; border:0px; cursor:hand; }
</style>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" marginwidth="0">
<jsp:include page="top.jsp"/>
<form method="post">
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0" style="background-color: #D8E9EC;">
  <tr>
    <td width="340" height="228">&nbsp;</td>
    <td><table width="90%" border="0" align="center" cellpadding="5" cellspacing="0">
      <tr>
        <td><img src="images/yhm.png" width="74" height="22"></td>
        <td><input name="userId" type="text" class="input" id="userId" value=""></td>
      </tr>
      <tr>
        <td><img src="images/mim.png" width="74" height="22"></td>
        <td><input name="userPassword" type="password" class="input" id="userPassword" onkeydown="dosome1()"></td>
      </tr>
        <tr style="height:25px;">
            <td colspan="2" align="center" style="color:#ff0000;font-size:9pt;">
                <s:property value="mess" id="mess"/>
            </td>
        </tr>
      <tr>
        <td>&nbsp;</td>
        <td><input name="button" type="button" onclick="_ok()" class="submit1" id="button" value="提 交">
        <input name="button2" type="reset" class="submit1" id="button2" value="重 置"></td>
      </tr>
    </table></td>
    <td width="337" height="428">&nbsp;</td>
  </tr>
</table>
    <jsp:include page="bottom.jsp"/>
    </form>
</body>
<script language="javascript">
    if (window != top) {
        top.location = location.href;
    }

    function _ok() {
        if (document.getElementById("userId").value == "") {
            alert("请输入用户名");
            return;
        }
        if (document.getElementById("userPassword").value == "") {
            alert("请输入密码！");
            return;
        }
        document.forms[0].action = "<c:url value='/userLogin.do'/>";
        document.forms[0].submit();
    }

    function dosome1() {
        if (window.event.keyCode == 13) {
            _ok();
        }
    }
</script>
</html>
